package com.daniel.design.pattern.adapter.class_adapter;

/**
 * @ClassName SdAdapterTf
 * @Description 类适配器类
 * @Author Daniel
 * @Version V1.0.0
 */
public class SdAdapterTf extends TfCardImpl implements SdCard {
    @Override
    public String readSd() {
        System.out.println("适配器中读取TF卡数据");
        return readTf();
    }

    @Override
    public void writeSd(String data) {
        System.out.println("适配器中写入TF卡数据");
        writeTf(data);
    }
}
